# $Id: PKGBUILD 150416 2012-02-17 12:46:43Z allan $
# Contributor: Tobias Kieslich <tobias@justdreams.de>
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libzvt
pkgver=2.0.1
pkgrel=7
pkgdesc="Zed's virtual terminal library"
arch=(i686 x86_64)
license=('GPL' 'LGPL')
url="http://ftp.gnome.org/pub/GNOME/sources/libzvt"
depends=('gtk2' 'libart-lgpl')
makedepends=('pkgconfig')
options=('!libtool')
source=(ftp://ftp.gnome.org/pub/GNOME/sources/libzvt/2.0/${pkgname}-${pkgver}.tar.bz2)
md5sums=('4bbea49495a341650fa1f89908e6554e')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  sed -i -e 's/-DGTK_DISABLE_DEPRECATED//g' libzvt/Makefile.*
  ./configure --prefix=/usr --sysconfdir=/etc \
      --localstatedir=/var --disable-static \
      --libexecdir=/usr/lib
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
